<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master"
Inherits="System.Web.Mvc.ViewPage<RouteList>" %>
<%@ Import Namespace="CyclingRoutes.Models"%>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	List
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <table>
         <tr>
            <th>Name</th>
            <th>Length</th>
            <th>Gain</th>
            <th>Grade</th>
            <th>Difficutly</th>
        </tr>
        <%foreach (var route in Model) { %>
        <tr>
            <td><%= route.Name %></td>
            <td><%= route.Length %> Km</td>
            <td><%= route.Gain %> m</td>
            <td><%= route.AverageGrade %>%</td>
            <td><%= route.Difficutly %></td>
        </tr>
    <% } %>
    </table>

</asp:Content>
